package org.jeecg.modules.lab.exam.exam.service.impl;


import org.jeecg.modules.lab.exam.entity.LabExamDepart;
import org.jeecg.modules.lab.exam.exam.mapper.LabExamDepartMapper;
import org.jeecg.modules.lab.exam.exam.service.ILabExamDepartService;
import org.springframework.stereotype.Service;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Description: 考试人员/部门表
 * @Author: jeecg-boot
 * @Date:   2023-08-26
 * @Version: V1.0
 */
@Service
public class LabExamDepartServiceImpl extends ServiceImpl<LabExamDepartMapper, LabExamDepart> implements ILabExamDepartService {
	
	@Autowired
	private LabExamDepartMapper labExamDepartMapper;
	
	@Override
	public List<LabExamDepart> selectByMainId(String mainId) {
		return labExamDepartMapper.selectByMainId(mainId);
	}

	@Override
	public Integer countByExamId(String examId) {
		return labExamDepartMapper.countPersonByExamId(examId);
	}

	@Override
	public Integer countByExamId() {
		return labExamDepartMapper.countPerson();
	}
}
